import { _decorator, Component, Node } from 'cc';
import { Dash_Skill } from './Dash_Skill';
import { Clone_Skill } from './CloneSkill/Clone_Skill';
import { Sword_Skill } from './SwordSkill/Sword_Skill';
const { ccclass, property } = _decorator;

@ccclass('SkillManager')
export class SkillManager extends Component {
    public static inst: SkillManager;

    public dash_Skill:Dash_Skill = null;
    public clone_Skill:Clone_Skill = null;
    public sword_Skill:Sword_Skill = null;
    protected onLoad(): void {
        if(SkillManager.inst!=null){
            this.destroy()
        }else{
            SkillManager.inst = this;
        }
    }

    protected start(): void {
        this.dash_Skill = this.getComponent(Dash_Skill);
        this.clone_Skill = this.getComponent(Clone_Skill);
        this.sword_Skill = this.getComponent(Sword_Skill);
    }
}


